#include<stdio.h>
#include<cmath>
#include<iostream>
#include<cstring>
using namespace std;
int IsPrimer(int x)
{
    if(x==0) return 0;
    if(x==1) return 0;
    if(x==2) return 1;
    int m = (int)sqrt(x);
    int flag = 0;
    for(int i = 2; i <= m;i++)
    {
        if(x%i == 0) flag = 1;
    }
    if(flag == 1) return 0;
    else return 1;
}
int main()
{
    //freopen("in.txt","r",stdin);
    int x[26] = {0};
    char str[105];
    cin >> str;
    int i = 0;
    while (str[i] !='\0')
    {
        x[str[i]-'a']++;
        i++;
    }
    int max = 1;
    int min = 102;
    for(i=0; i < 26;i++)
    {
        if(min > x[i] && x[i] != 0) min = x[i];
        if(max < x[i]) max = x[i];
    }
    if(IsPrimer(max-min))
    {
        printf("Lucky Word\n");
        cout << max-min;
    }
    else
    {
        printf("No Answer\n");
        cout << "0";
    }
}